let express = require("express");

let app = express();

let ejs = require("ejs");

let lgRouter = require("./登录");

let regRouter = require("./注册");

app.use(express.urlencoded({extended:false}));

app.set("view engine", "html");

app.set("views", __dirname + "/view");

app.engine("html", ejs.__express);

app.use(lgRouter);

app.use(regRouter);

app.listen(3000,"127.0.0.1",()=>{
    console.log("启动");
})